﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using S4Store.Domain;

namespace S4Store.Models.Report
{
    public class CarBrandOrderTimeRateModel : BaseReportModel
    {
        public class BrandData
        {
            public CarBrand CarBrand { get; set; }
            public int Sale { get; set; }
            public int SaleTarget { get; set; }
            public int SaleExpectTarget
            {
                get
                {
                    return (int)(SaleTarget * DateRate / 100);
                }
            }
            public decimal Rate { get; set; }
            public decimal DateRate { get; set; }
        }


        public int DayCount { get; set; }
        public int Day { get; set; }
        public decimal DateRate
        {
            get
            {
                return (decimal)Day * (decimal)100 / (decimal)DayCount;
            }
        }

        public List<BrandData> BrandDatas = new List<BrandData>();
    }

    
}